/*
 * @Author: gaojinyu 1593026814@qq.com
 * @Date: 2023-12-04 15:32:15
 * @LastEditors: gaojinyu 1593026814@qq.com
 * @LastEditTime: 2023-12-27 10:03:38
 * @FilePath: \smart-community\src\router\index.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/index',
  },
  {
    path: '/index',
    name: 'index',
    redirect: '/page-index',
    component:() => import("@/components/layout/index.vue"),
    children:[
      {
        path: '/page-index',
        name: 'PageIndex',
        component:() => import("@/views/index/index.vue")
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
